package com.zqweb.common.constant;

// 商品服务的常量信息
public class ProductConstant {

    // 商品属性类型的枚举类
    public enum ProductParam{
        PARAM_BASE_TYPE(1,"基本属性"),
        PARAM_SALE_TYPE(0,"销售属性");

        private int code;
        private String msg;

        ProductParam(int code,String msg){
            this.code = code;
            this.msg = msg;
        }
        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
    // 商品上架的状态枚举类
    public enum ProductUpload{
        SPU_CREATED(0,"新建"),
        SPU_UP(1,"商品上架"),
        SPU_DOWN(2,"商品下架");

        private int code;
        private String msg;
        ProductUpload(int code,String msg){
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
}
